import request from '@/utils/request'
export function wineCList(name) {
  return request({
    url: '/system/winepromotion/list',
    method: 'get',
    params:{
     name
    }
  })
}export function addWine(data) {
 return request({
   url: '/system/winepromotion/addPromotionAndProducts',
   method: 'post',
    data
 })
}
export function deleteWine(data) {
 return request({
   url: '/system/winepromotion/delete',
   method: 'post',
  data
 })
}

export function updateWine(data) {
 return request({
   url: '/system/winepromotion/update',
   method: 'post',
  data
 })
}